package com.yyn.order.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class OrderNoUtil{
    public static String getOrderNo(){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        String newData = simpleDateFormat.format(new Date());
        String result = "";
        Random random = new Random();
        for (int i = 0; i <3 ; i++) {
            result+=random.nextInt(10);
        }
        return newData+result;
    }
}
